<template>
  <div>
    <button @click="init">点我获取数据</button>
    <div>
      {{ list }}
    </div>
  </div>
</template>

<script>
import axios from '../http/request'
export default {
  data() {
    return {
      list: []
    }
  },
  methods: {
    init() {
      axios.get('/list').then(res => {
        this.list = res.data.data
      })
    }
  }
}
</script>

<style>

</style>